<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name=”renderer” content=”webkit”>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>东明家居集团-活动分析管理系统</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/iview.css">
<link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <link href="js/toastr/toastr.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid" id="app">
     <!-- breadcrumb -->
      <template class="page-header">
          <breadcrumb class="pull-left">
              <breadcrumb-item to="welcome.html" >首页</breadcrumb-item>
              <breadcrumb-item>入库管理</breadcrumb-item>
          </breadcrumb>
      </template>
      <!-- 搜索条件 -->
      <div class="table-margin">
          <row>
              <i-from :model="queryForm">
                  <i-col span="3" class-name="mr10">
                      <i-select v-model="queryForm.DealerNo" placeholder="请选择经销商">
                          <i-option v-for="item in Dealers" :value="item.DealerNo" :key="item.Name">{{ item.Name }}</i-option>
                      </i-select>
                  </i-col>
                  <i-col span="3" class-name="mr10">
                      <!--<i-select placeholder="请选择产品">
                          <i-option value="电压力锅">电压力锅</i-option>
                          <i-option value="热水器">热水器</i-option>
                      </i-select> -->
                      <i-input v-model="queryForm.ProductName" placeholder="请输入产品" ></i-input>
                  </i-col>
                  <i-col span="3" class-name="mr10">
                      <!--<i-select placeholder="请选择产品">
                          <i-option value="电压力锅">电压力锅</i-option>
                          <i-option value="热水器">热水器</i-option>
                      </i-select> -->
                      <i-input v-model="queryForm.InNo" placeholder="请输入入库单号" ></i-input>
                  </i-col>
                  <i-col span="3" class-name="mr10">
                      <i-select v-model="queryForm.WarehouseNo" placeholder="请选择仓库">
                          <i-option v-for="item in wareHouses" :value="item.WarehouseNo" :key="item.Name">{{ item.Name }}</i-option>
                      </i-select>
                  </i-col>
                  <i-col span="3" class-name="mr10">
                      <i-select placeholder="请选择入库类型" v-model="queryForm.Type">
                          <i-option value="0">采购入库</i-option>
                          <i-option value="1">调拨入库</i-option>
                      </i-select>
                  </i-col>
              </i-from>
              <i-button type="primary" class="mr10" @click="queryIn">搜索</i-button>
              <i-button type="primary" class="mr10" @click="clickIn" v-if="isBm">入库</i-button>
          </row>            
      </div>
      <!-- 搜索结果 -->
      <div class="table-margin">
           <i-table :columns="columns1" :data="data1" algin="center" class="table_style"></i-table>
          <Page :total="rkTotal" :current="rkCurrent" :page-size="rkPageSize"  :show-total="true" @on-change="rkbeforequerytable" :transfer="true"></Page>
      </div>
     <!-- 入库弹框 -->
     <modal v-model="modal1" title="入库" @on-ok="saveIn" @on-cancel="cancel" width='600'>
                <i-form :model="formItem" label-position="right" :label-width="80">
                        <row>
                            <i-col span="16" offset="1">
                                <Form-item label="入库编号：" >
                                      <i-input v-model="formItem.InNo" placeholder="RK-01-201810001" disabled></i-input>
                                </Form-item>
                            </i-col> 
                            <i-col span="16" offset="1">
                                <Form-item label="入库类型：" >
                                      <i-select v-model="formItem.Type" @on-change="getInType">
                                          <i-option value="0">采购入库</i-option>
                                          <i-option value="1">调拨入库</i-option>
                                      </i-select> 
                                </Form-item>
                            </i-col>
                            <i-col span="16" offset="1">
                                <Form-item label="产品：" >
                                      <i-input v-model="formItem.ProductName" placeholder="请选择产品" @click.native="clickProduck"></i-input>
                                </Form-item>
                            </i-col> 
                             <!-- 选择产品弹框 开始-->
                             <modal v-model="plan" title="选择产品" @on-ok="ok" @on-cancel="cancel" width='1100' :transfer="false">
                                    <i-table :columns="columns3" :data="data3" algin="center" class="table_style" @on-row-click="clickPlan"></i-table>
                                    <Page :total="c1Total" :current="c1Current" :page-size="c1PageSize"  :show-total="true" @on-change="beforequerytable" :transfer="true"></Page>
                             </modal> 
                             <!-- 选择产品弹框结束 --> 

                            <i-col span="16" offset="1">
                                <Form-item label="数量：" >                                      
                                      <input-number v-model="formItem.ProductNumber" :min="1" style="width:100%" @on-blur="numberBlur" :disabled="numberDis"></input-number>
                                </Form-item>
                            </i-col> 
                            <i-col span="16" offset="1">
                                <Form-item label="入库仓库：" >
                                      <i-select v-model="formItem.WarehouseNo">
                                          <!--<i-option value="一号仓库">一号仓库</i-option>
                                          <i-option value="二号仓库">二号仓库</i-option>-->
                                          <i-option v-for="item in wareHouses" :value="item.WarehouseNo" :key="item.Name">{{ item.Name }}</i-option>
                                      </i-select> 
                                </Form-item>
                            </i-col>  

                    </row>
              </i-form>
       </modal>

</div>
</body>
<script src="js/vue.js"></script>
<script src="js/iview.min.js"></script>
<script src="js/toastr/toastr.min.js"></script>
<script src="js/inbound/inbound.js"></script>
</html>

  

  

  

  

  
